package com.yuexinduo.education.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.yuexinduo.education.R;
import com.yuexinduo.baselibrary.base.BaseMvpActivity;

public class BankCardActivity extends BaseMvpActivity implements View.OnClickListener {
    private ImageView back;
    private TextView top;
    private TextView cardHere;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int bindLayout() {
        return R.layout.activity_bank_card;
    }

    @Override
    protected Activity getActivity() {
        return this;
    }

    @Override
    protected void initCreate() {

        back = (ImageView) findViewById(R.id.back);
        top = (TextView) findViewById(R.id.top);
        cardHere = (TextView) findViewById(R.id.card_here);
        top.setText("银行账号信息");
        back.setOnClickListener(this);
        cardHere.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
         switch (v.getId()){
             case R.id.back:
                 finish();
                 break;
             case R.id.card_here:
                 startActivity(new Intent(getActivity(),BankCardUpActivity.class));
                 break;
         }
    }
}